service.playSoundTick()

require 'import'
task(400, function()
time= os.date('%r ')
this.speak(' the time now is ' .. time)
end)
task(2100, function()
require 'import'
import 'android.os.BatteryManager'
import 'java.lang.Object'
d= BatteryManager()
 this.context.getSystemService(BATTERY_SERVICE);
batLevel = d.getIntProperty(d.BATTERY_PROPERTY_CAPACITY)

this.speak(tostring(' current battery level is ' .. batLevel .. 'percent'))
end)

return true